package com.pig4cloud.pig.building.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.building.entity.PropertyBuilding;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

@Mapper
public interface BuildingMapper extends BaseMapper<PropertyBuilding> {

	PropertyBuilding checkByBuildingName(PropertyBuilding buildingEntity);

	IPage<PropertyBuilding> selectAll(Page<PropertyBuilding> page,
									  	@Param("buildingName") String buildingName,
										@Param("completionTime") LocalDate completionTime);
}
